import type * as Product from "./type"
import { request } from "@/http/axios"
import {TypeRequestData} from "./type";

/** 获取登录验证码 */
export function getProduct(params: Product.ProductRequestData) {
  return request<Product.ProductResponseData>({
    url: "su/product/page",
    params,
    method: "get"
  })
}

export function getTypes(params: Product.TypeRequestData) {
  return request<Product.TypeDataResponseData>({
    url: "system/dict-data/list-by-type",
    params,
    method: "get"
  })
}
